@extends('company.company')

@section('title','企业中心')
@section('rightcontainer')

<div class="col-xs-10" style="padding-right: 0;">
    <div class="backgr-color-white boderbottom-213">
        <div class="color-1  height-50 clearfix">
            <span class="margin-l-15">考试记录</span>
        </div>
    </div>
    <div class="tab-row bord-b font-16">
        <ul>
            <li><strong>职位名称</strong></li>
            <li><strong>试卷名称</strong></li>
            <li><strong>分数</strong></li>
            <li><strong>用户</strong></li>
            <li><strong>考试时间</strong></li>
        </ul>
    </div>
    @foreach ($ehistory as $exam)
    <div class="tab-row bord-b" id="news_{{$exam->id}}">
        <ul>
            <li>@if(count($exam->jobs)>0){{ $exam->jobs->title }}@else <font color="red">职位已被删除</font> @endif</li>
            <li>{{ $exam->exam->name }}</li>
            <li>{{ $exam->score }} 分</li>
            <li>{{ $exam->user->name }}</li>
            <li>{{ date('Y-m-d H:i',strtotime($exam->created_at)) }}</li>
        </ul>
    </div>
    @endforeach
    <div>{!! $ehistory->render() !!} </div>
</div>
@stop

<!--底部导航-->
@section('footer')
@parent
@stop

